package com.example.other.service;

import com.example.other.domain.Chat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.other.domain.UsersInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Limhuang
* @description 针对表【chat】的数据库操作Service
* @createDate 2024-07-09 10:53:21
*/
public interface ChatService extends IService<Chat> {
    List<UsersInfo> getChatedUsersByDoctorId(@Param("doctorId") Integer doctorId);

    List<Chat> getChatListByDoctorIdAndUserId(@Param("doctorId") Integer doctorId,@Param("userId") Integer userId);

    List<UsersInfo> getChatedUsersByCosId(@Param("cosId") Integer cosId);
}
